 <!doctype html>
 <html lang="zh-CN">
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="../view/admin/css/common.css">
   <link rel="stylesheet" href="../view/admin/css/main.css">
   <script type="text/javascript" src="../view/admin/js/jquery.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/common.js"></script>
   

   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        
      }); 
   </script>
   <title>用户列表</title>
 </head>
 <body>
 
    <div class="container">
     <div id="table" class="mt10">
        <div class="box span10 oh">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">

                <tr class="tr">

                   <th width="100%" colspan="7">用户列表</th>   

                </tr>
                <tr class="tr">
                   <td   class="td_center">ID</td>
                   <td   class="td_center">用户名</td>
                   <td   class="td_center" >开启状态</td>
                   <td   class="td_center" >用户角色</td>
                   <td   class="td_center" >真实姓名</td>
                   <td   class="td_center" >手机号码</td>
                   <td   class="td_center" >操作</td>
                </tr>
                    <?php foreach ($data as $v ){ ?>
                <tr align='center' class="tr">
                  <td><?php echo $v['user_id']?></td>
                  <td><?php echo $v['uname']?></td>
                  <td><?php if($v['status']==1){echo '开启';}else{echo '关闭';} ?></td>
                  <td><?php echo $v['name']?></td>
                  <td><?php echo $v['real_name']?></td>
                  <td><?php echo $v['mobile_no']?></td>
                  <td><a href="index.php?c=user&a=roleUpdate&id=<?php echo $v['user_id']?>">修改角色</a> | <a href="index.php?c=user&a=userDel&id=<?php echo $v['user_id']?>" onclick="return confirm('你确定要删除该用户？')">删除该用户</a></td>

                </tr>

                <?php }?>
            
              </table>
              <div class="page mt10">
                <div class="pagination">
                  <ul>
                      <li class="first-child"><a href="#">首页</a></li>
                      <li class="disabled"><span>上一页</span></li>
                      <li class="active"><span>1</span></li>
                      <li><a href="#">2</a></li>
                      <li><a href="#">下一页</a></li>
                      <li class="last-child"><a href="#">末页</a></li>
                  </ul>
                </div>
              </div>
        </div>
     </div>
   </div>
 </body>
 </html>
  